home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-07-28 | 3.8 KB | 103 lines | [TEXT/KAHL] |
- /***********************************************************************
- Comm Analyzer Release Notes
-
- Created: Tuesday, July 27, 1993, 10:25 PM
- Project: CommAnalyzer.π
- Compiler: 6.0, © Symantec Corporation 1993
- By: Greg Ames
-
- Copyright © 1993,1993 Ames & Associates.
- All rights reserved.
-
- AppleLink:AMES
- AOL:AMES
- Compuserve:73177,1603
-
- ***********************************************************************/
-
- The CommAnalyzer application allows developer to monitor and display
- data monitored passing by on the Macintosh serial ports. It is designed to be used
- as a communications monitor for another computer. For example, if you
- wanted to see what communications was happening between a Mac and a modem,
- it will allow you to look at the data sent to and received by the host computer.
-
- I am working on a project where there was a single HP communications analyzer
- and 4 engineers trying to use it. I had a spare PowerBook laying around and
- wrote this App.
-
- All the standard non-responsibilities apply. The code, source and object,
- are supplied with no assumptions for use ability.
-
- I built a special cable that easily allows me to monitor the serial communications.
- I bought 2 cables, one was Din-8 Male to Din-8 Female, and the other was a Din-8
- Male to Din-8 Male. The Male to Male was cut in half. The Male to female cable
- had 3 inches of shield removed in the middle. I identified the signals using a volt
- ohm meter and a straight pin.
-
- The cable was wired as follows
-
- Din-8 Male(M-M) Din-8 Male Din-8 Male(M-M)
-
- 1 2 3 4 5 6 7 8
- | | | | | | | |
- GND | | | | | | | | GND
- 4-----------------------|---|---|---+---|---|---|---|------------------4
- 5----+------------------|---|---+ | +---|---|---|--------+---------5
- TXD- | +--------------+ | | | | | | | |
- | | +----------|---+ | | | | | | |
- | | | |H |H |T |G |R |T |G |R | TXD-
- LED LED LED |S |S |X |N |X |X |P |X LED
- | | | |K |K |D |D |D |D |I |D |
- 330 330 330 |O |I |- | |- |+ | |+ 330 ohm
- | | | 1 2 3 4 5 6 7 8 |
- GND GND GND Din-8 Female GND
-
- (+ means a junction)
-
-
- In addition, I added 4 LEDs from 1,2,3 & 5 thru a 330 ohm resisters to pin 4 to ground.
- This allows you to monitor the data lines and the handshake lines.
-
- This was all placed in a Radio Shack project box.
-
- So much for hardware.
-
- The serial port monitor allows you to set baud rate (common for both ports), parity,
- start bits, stop bits. etc. You can save and load communication screens.
- After reloading a buffer, the Insert happens from the top left. There is NO undo so
- be careful.
-
- Caveat:!!!! There is no handshake support. Therefore you will get overruns with long
- data streams. The higher the baud rate, the sooner you will get overruns etc.
- This is diagnostic tool for small communications projects. There are
- no error/overrun messages from the tool ( an exercise left for the user).
-
- Caveat:!!!! The real-time relationship between streams is not accurate. I do a SerGetBuf,
- read that many characters, update the display and then read the next channel. Therefore,
- there is a high likelihood that the timing is not correct. The proper way I suppose would
- be to do an ASync read on each channel, timestamp character when received and the deque
- in the proper order.
-
-
- Future enhancements if I need them:
-
- Standard control character display (NUL,CR,LF etc.);
- Packet recording and playback with timing. (to display only)
- Disk stream writing.
- Error displays
- Counts for characters read per stream and buffers
-
- If you make changes/enhancements/suggestions, please send them to me at one of the
- addresses above.
-
- Hope it helps you, and if you really like it send cash.
-
- Greg Ames
- Ames & Associates
- 1558 Glenmont Dr.
- Glendale, CA 91207
- (415)366-5154
- AppleLink:AMES
- AOL:AMES
- Compuserve:73177,1603
-